import 'package:flutter/material.dart';
import 'package:mi_mang_flutter/utils/locale_util.dart';

class CommonIssuePage extends StatefulWidget {
  CommonIssuePage({Key? key}) : super(key: key);

  @override
  _CommonIssuePageState createState() => _CommonIssuePageState();
}

class _CommonIssuePageState extends State<CommonIssuePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(i18n(context).commonIssue),
        centerTitle: true,
        elevation: 0.0,
      ),
      body: SafeArea(
        child: SingleChildScrollView(
          child: _buildBody(),
        ),
      ),
    );
  }

  Widget _buildBody() {
    return Column(
      children: <Widget>[
        ExpansionTile(
          title: Text("绑定手机有什么好处?"),
          children: <Widget>[
            Padding(
              padding: EdgeInsets.symmetric(horizontal: 15.0),
              child: Text("我是内容我是内容我是内容，我是内容我是内容我是内容。我是内容我是内容我是内容。"),
            ),
          ],
        ),
        ExpansionTile(
          title: Text("出现异常怎么办?"),
          children: <Widget>[
            Padding(
              padding: EdgeInsets.symmetric(horizontal: 15.0),
              child: Text("我是内容我是内容我是内容，我是内容我是内容我是内容。我是内容我是内容我是内容。"),
            ),
          ],
        ),
      ],
    );
  }
}
